﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/Setting.Master" AutoEventWireup="true" CodeBehind="MessageList.aspx.cs" Inherits="WebSite.UserSetting.MessageList" %>

<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    Namespace="System.Web.UI" TagPrefix="asp" %>
<%@ Register Assembly="BaseSet.Entity" Namespace="BaseSet.Entity.Common.Controls"
    TagPrefix="cc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<script language="javascript" type="text/javascript">
    function Check()
    {
    var 
    }
</script>
<title>友赢网 - 个人中心 - 消息列表</title>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<div class="w-780">
<h2>
    <asp:Literal ID="litTitle" runat="server"></asp:Literal></h2>
<div class="r" >
         <asp:Button ID="btnSubmit" runat="server" Text="清 空" OnClientClick="return confirm('确定要清空所有消息吗？');"
                 style="background-color:#70A52F;width:75px; margin-right:13px; height:25px; float:left;border:0; cursor:pointer; color:White" 
                 onclick="btnSubmit_Click" /></div>
    <ul class="formSet mt5">
    <asp:Repeater ID="rptMessageList" runat="server" 
        onitemcommand="rptMessageList_ItemCommand">
    <HeaderTemplate>
    <table width="100%" border="0" cellpadding="0" cellspacing="1" bordercolor="#cccfd1" bgcolor="#CCCFD1">
<tr align="center">
<td height="30" align="center" bgcolor="#E1E1E1" width="5%"><span class="STYLE4">序号</span></td>
<td height="30" align="center" bgcolor="#E1E1E1" width="10%"><span class="STYLE4">发送人</span></td>
<td height="30" align="center" bgcolor="#E1E1E1" width="55%"><span class="STYLE4">消息内容</span></td>
<td height="30" align="center" bgcolor="#E1E1E1" width="15%"><span class="STYLE4">日期</span></td>
<td height="30" align="center" bgcolor="#E1E1E1" width="15%"><span class="STYLE4">操作</span></td>
</tr>
    </HeaderTemplate>
    <ItemTemplate>
    <tr>
<td height="30" align="center" bgcolor="#FFFFFF"><%# Container.ItemIndex+1%></td>
<td height="30" align="center" bgcolor="#FFFFFF"><a href="../u/<%#Eval("FromUsersID")%>.aspx" target="_blank"><%#Eval("FromNickName")%></a></td>
<td height="30" align="center" bgcolor="#FFFFFF"><%#Eval("MessageContent")%></td>
<td height="30" align="center" bgcolor="#FFFFFF"><%# DataBinder.Eval(Container.DataItem,"CreateDate","{0:yyyy-MM-dd HH:mm}") %></td>
<td height="30" align="center" bgcolor="#FFFFFF">
    <asp:HiddenField ID="hidID" runat="server" Value='<%#Eval("ID") %>'/>
    <asp:HiddenField ID="hidFromUserID" runat="server" Value='<%#Eval("FromUsersID") %>'/>
<asp:LinkButton ID="lbReply" runat="server" CommandName="reply">回复他</asp:LinkButton>
    <asp:LinkButton ID="lbDelete" runat="server" CommandName="delete" OnClientClick="return confirm('确定要删除该消息？')">删除</asp:LinkButton>
    
</td>
</tr>
    </ItemTemplate>
    <FooterTemplate>
    </table>
    </FooterTemplate>
    </asp:Repeater>
       </ul>    
       <div align="center">
       <cc1:URLPager ID="MessageUPager" runat="server" UseSpacer="False" UseFirstLast="true"
        PageSize="20" FirstText="<< 首页" LastText="尾页 >>" LinkFormatActive='<span class=Current>{1}</span>'
        CssClass="Pager" />   
        </div>  

                                
</div>

</asp:Content>
